package com.vegetable.modules.entity.finance.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 客户销售统计VO
 */
@Data
@ApiModel(value = "客户销售统计VO", description = "按客户统计的销售及回款情况")
public class CustomerSalesVO {

    @ApiModelProperty(value = "客户ID")
    private Long customerId;

    @ApiModelProperty(value = "客户名称")
    private String customerName;

    @ApiModelProperty(value = "销售总金额")
    private BigDecimal totalSalesAmount;

    @ApiModelProperty(value = "已回款金额")
    private BigDecimal receivedAmount;

    @ApiModelProperty(value = "未回款金额")
    private BigDecimal unreceivedAmount;

    @ApiModelProperty(value = "回款率(%)")
    private BigDecimal collectionRate;

    @ApiModelProperty(value = "销售订单数")
    private Long orderCount;
}